package com.timebank.score.mapper;

import com.timebank.common.core.web.pojo.AjaxResult;
import com.timebank.score.pojo.entity.ScoreTask;
import com.timebank.score.pojo.vo.ScoreTaskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 积分任务
 * @author shiliuyinzhen
 */
@Mapper
public interface ScoreTaskMapper {

    /**
     * 新增积分任务
     * @param scoreTask
     * @return
     */
    int addScoreTask(ScoreTask scoreTask);

    /**
     * 修改积分任务
     * @param scoreTask
     * @return
     */
    int updateScoreTask(ScoreTask scoreTask);

    /**
     * 查询积分任务列表
     * @param scoreTask
     * @return
     */
    List<ScoreTaskVO> getScoreTaskList(ScoreTask scoreTask);

    /**
     * 批量删除积分任务
     * @param taskIds
     * @return
     */
    int batchDeleteScoreTask(@Param("taskIds") Long[] taskIds);

    /**
     * 查询积分任务
     * @param scoreTask
     * @return
     */
    ScoreTask getScoreTask(ScoreTask scoreTask);
}
